package com.huqing.icu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huqing.icu.dto.ChatSessionQueryDto;
import com.huqing.icu.model.ChatSession;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChatSessionMapper extends BaseMapper<ChatSession> {

    ChatSession selectByIdAndUserId(@Param("id") Long id, @Param("userId") Long userId);

    Integer deleteById(@Param("id") Long id, @Param("userId") Long userId);

    Integer getNumByUserId(@Param("userId") Long userId);

    List<ChatSession> selectByCondition(ChatSessionQueryDto queryDto);
}
